<include file="public:head" />
<include file="public:sep" />
<style type="text/css">
  .layui-nav-tree{width: 200px!important;}
</style>
<div class="layui-container fly-marginTop fly-user-main">
  <include file="ucleft" />

  <div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
  </div>
  <div class="site-mobile-shade"></div>
  
  <div class="site-tree-mobile layui-hide">
    <i class="layui-icon">&#xe602;</i>
  </div>
  <div class="site-mobile-shade"></div>
  
  
  <div class="fly-panel fly-panel-user" pad20>
    <div class="layui-tab layui-tab-brief" lay-filter="user">
      <ul class="layui-tab-title" id="LAY_mine">
        <li ><a href="{:U('ucenter/index')}">我的资料</a></li>
        <li class="layui-this"><a href="{:U('ucenter/setavatar')}" >头像设置</a></li>
         <li><a href="{:U('ucenter/setpassword')}">修改密码</a></li>
      </ul>
      <div class="layui-tab-content" style="padding: 20px 0;">
         <form class="layui-form layui-form-pane" action="">
            <input type="hidden" id="x" name="x" value=""/>
            <input type="hidden" id="y" name="y" value=""/>
            <input type="hidden" id="w" name="w" value="168"/>
            <input type="hidden" id="h" name="h" value="168"/>
            <input type="hidden" id='img_src' name='src'/>
            <div class="layui-form-item">
              <div class="avatar-add">
                <p>建议尺寸168*168，支持jpg、png、gif，最大不能超过50KB</p>
                <button type="button" class="layui-btn upload-img">
                  <i class="layui-icon">&#xe67c;</i>上传头像
                </button>
                <img src="{:C('wkcms_site_url')}{$uid|getavatar}">
                <span class="loading"></span>
              </div>
            </div>
            
          </form>
           
        </div>
      </div>
    </div>
  </div>

<include file="public:footer" />
  <script src="__PUBLIC__/theme/blueideal/mods/user.js"></script> 
<script>
var upUrl = "{:U('ucenter/uploadImg')}";
var setUrl = "{:U('ucenter/newImgSet')}";
</script>
 